package shapes;

import interfaces.IShape;

import java.awt.Color;

/**********************************************
 * Cours :			LOG120
 * Session :		Automne 2011
 * Groupe : 		03
 * Projet : 		Lab 1
 * Étudiant(e)(s) : Garcia Carrasco, Maria
 * 					Bolduc, Andrew
 * Code(s) perm. :  GARM05559006
 * 					BOLA03098701
 * Professeur : 	Yannick Boucher
 * Chargé de labo:  Jonathan Simard
 * Nom du fichier : Shape.java
 * Date crée :      2011-09-20
 **********************************************
 * Historique des modifications
 **********************************************
 * 2011-09-20		Version initiale
 **********************************************
 *
 */

public abstract class AbstractShape implements IShape {
	
	private int xOrigin;
	private int yOrigin;
	private int secondX;
	private int secondY;
	private Color color;
	private String shapeName;
	private int shapeID;

	/**
	 * @param shapeID
	 * @param shape
	 * @param color
	 * @param xOrigin
	 * @param yOrigin
	 * @param secondX
	 * @param secondY
	 */
	public AbstractShape(int shapeID, String shape, Color color, int xOrigin, int yOrigin, int secondX, int secondY) {
		this.shapeID = shapeID;
		this.color = color;
		this.shapeName = shape;
		this.xOrigin = xOrigin;
		this.yOrigin = yOrigin;
		this.secondX = secondX;
		this.secondY = secondY;
	}
	
	/**
	 * @return
	 */
	public int getxCoord() {
		return xOrigin;
	}
	
	/**
	 * @return
	 */
	public int getyCoord() {
		return yOrigin;
	}
	
	/**
	 * @return
	 */
	public Color getColor() {
		return this.color;
	}
	
	/**
	 * @return
	 */
	public String getShapeName() {
		return shapeName;
	}
	
	/**
	 * @return
	 */
	public int getShapeID() {
		return shapeID;
	}

	public void setxOrigin(int xOrigin) {
		this.xOrigin = xOrigin;
	}

	public void setyOrigin(int yOrigin) {
		this.yOrigin = yOrigin;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public void setShapeName(String shapeName) {
		this.shapeName = shapeName;
	}

	public void setShapeID(int shapeID) {
		this.shapeID = shapeID;
	}

	public int getSecondX() {
		return secondX;
	}

	public void setSecondX(int secondX) {
		this.secondX = secondX;
	}

	public int getSecondY() {
		return secondY;
	}

	public void setSecondY(int secondY) {
		this.secondY = secondY;
	}
	
}